<?php

namespace App\Models\Assess;

use App\Models\BaseModel;

class EmailTemplateModel extends BaseModel
{

    protected $connection = self::MYSQL_EVALUATION;
    // 设置数据表
    protected $table = 'email_template';
    //模板类型 邮件模板对应1:注册用户,2:选择礼品但未留评用户,3:中低评分用户,4:高评分用户,5:高评价已匹配用户,6:高评价未匹配用户,7:中差评用户,8:好评用户,9:激活失败用户,10:激活异常用户
    const TEMPLATE_TYPE_ACTIVATE =1;
    const TEMPLATE_TYPE_NO_COMMENT =2;
    const TEMPLATE_TYPE_LOW_RATING =3;
    const TEMPLATE_TYPE_HEIGHT_RATING =4;
    const TEMPLATE_TYPE_HEIGHT_RATING_YES =5;
    const TEMPLATE_TYPE_HEIGHT_RATING_NO =6;
    const TEMPLATE_TYPE_BAD_REVIEWS =7;
    const TEMPLATE_TYPE_FAVORABLE_COMMENT =8;
    const TEMPLATE_TYPE_ACTIVATE_FAILED =9;
    const TEMPLATE_TYPE_ACTIVATE_EXCEPTION =10;

    //激活买家管理对应的用户类型
    public $userType = [
        self::TEMPLATE_TYPE_ACTIVATE=>'注册用户-已激活',
        self::TEMPLATE_TYPE_NO_COMMENT=>'选择礼品但未留评用户',
        self::TEMPLATE_TYPE_LOW_RATING=>'中低评分用户',
        self::TEMPLATE_TYPE_HEIGHT_RATING=>'高评分用户',
        self::TEMPLATE_TYPE_HEIGHT_RATING_YES=>'高评价已匹配用户',
        self::TEMPLATE_TYPE_HEIGHT_RATING_NO=>'高评价未匹配用户',
        self::TEMPLATE_TYPE_BAD_REVIEWS=>'中差评用户',
//        self::TEMPLATE_TYPE_FAVORABLE_COMMENT=>'好评用户',
        self::TEMPLATE_TYPE_ACTIVATE_FAILED=>'激活失败用户',
        self::TEMPLATE_TYPE_ACTIVATE_EXCEPTION=>'激活异常用户',
    ];

}
